/**************************************************************************

Game Editor - The Cross Platform Game Creation Tool
Copyright (C) 2009  Makslane Araujo Rodrigues, http://game-editor.com

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

If GPL v3 does not work for you, we offer a "non-GPL" license 
More info at http://game-editor.com/License
Be a Game Editor developer: http://game-editor.com/Sharing_Software_Revenues_in_Open_Source

***************************************************************************/


/////////////////////////////////////////////////////////////////////////////
// Name:        OryxApp.h
// Purpose:     
// Author:      
// Modified by: 
// Created:     01/08/06 14:24:22
// RCS-ID:      
// Copyright:   
// Licence:     
/////////////////////////////////////////////////////////////////////////////

#ifndef __ORYXAPP_H__
#define __ORYXAPP_H__

////@begin includes
#include "wx/image.h"
#include "MainFrame.h"
////@end includes



class wxLuaState;
class MainFrame;



extern wxColour colorCaption;
extern wxColour colorCaptionText;
extern wxColour colorBgContent;
extern wxColour subCategoryColor;



class OryxApp : public wxApp
{
	DECLARE_CLASS( OryxApp )
	DECLARE_EVENT_TABLE()

public:
	/// Constructor
	OryxApp();

	/// Initialises the application
	virtual bool OnInit();

	/// Called on exit
	virtual int OnExit();

	wxString GetApplicationDir() {return applicationDir;}
	wxLuaState* GetLuaState() {return state;}

private:
	void InitColors();
	bool InitLuaState();

private:
	wxLuaState *state;
	MainFrame *mainFrame;

	wxString applicationDir;
};

/*!
 * Application instance declaration 
 */

////@begin declare app
DECLARE_APP(OryxApp)
////@end declare app

#endif